<?php

/*
@package Achievement Chart
@version 1.0
@Copyright (c) 2010-2011 Bovy
@license http://opensource.org/licenses/gpl-license.php GNU Public License


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/




/*read access data from xml file*/

    /*$xml = new XMLReader();
    $xml->open("configuration.xml");
    $xml->setParserProperty(2,true); 

    while ($xml->read()) {
        switch ($xml->name) {
        case "Host":
            $xml->read();
            $conf["host"] = $xml->value;
            $xml->read();
            break;
        case "Username":
            $xml->read();
            $conf["user"] = $xml->value;
            $xml->read();
            break;
        case "Password":
            $xml->read();
            $conf["pass"] = $xml->value;
            $xml->read();
            break;
        case "characters_db":
            $xml->read();
            $conf["characters_db"] = $xml->value;
            $xml->read();
            break;
        case "achievement_db":
            $xml->read();
            $conf["achi_db_table"] = $xml->value;
            $xml->read();
            break;
        case "character_achievement":
            $xml->read();
            $conf["char_achi_table"] = $xml->value;
            $xml->read();
            break;
        case "url":
            $xml->read();
            $conf["url"] = $xml->value;
            $xml->read();
            break;
        case "gilda":
            $xml->read();
            $conf["gilda"] = $xml->value;
            $xml->read();
            break;
        case "limit":
            $xml->read();
            $conf["limit"] = $xml->value;
            $xml->read();
            break;
        }
    }


    $xml->close();*/





$host = 'localhost'; /* db_host */
$user = 'root'; /* db_username */
$pass = 'password'; /* db_password */

/*other option*/

$characters_db = 'characters'; /* characters db..default for trinitydb */
$achi_db_table = 'achievement_db'; /* achievement_db resource..default */
$char_achi_table = 'character_achievement'; /* default for trinitydb*/

$pathtopg = 'localhost/'; /* base armoy path (pg) i.e. http://myserver.com/test_armory/ */
$pathtoguild = 'localhost/'; /*base armory path (guild) i.e. http://myserver.com/test_armory/ */
$num_limit = 25;  /*limit on query result*/

?>

